package com.uy.system.controller;

import com.uy.system.model.vo.SysUserVo;
import com.uy.system.response.ResponseMessage;
import com.uy.system.response.ResponseMessageFactory;
import com.uy.system.service.ISysUserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户信息表 前端控制器
 * </p>
 *
 * @author ly
 * @since 2024-03-22
 */
@Tag(name = "用户信息接口文档")
@RestController
@RequestMapping("/sysUser")
@RequiredArgsConstructor
public class SysUserController {

    private final ISysUserService iSysUserService;

    @Operation(summary = "获取用户信息列表")
    @GetMapping("/getSysUserList")
    public ResponseMessage<List<SysUserVo>> getSysUserList(){
        return ResponseMessageFactory.getSuccessResponseMessage(iSysUserService.getSysUserList());
    }
}
